package com.cet.designpatterns.command;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-18 10:42
 **/
public class Client {
    public static void main(String[] args) {
        RemoteController remoteController = new RemoteController();
        remoteController.setCommand(0, new LightOnCommand(), new LightOffCommand());
        remoteController.onButtonPushed(0);
        remoteController.offButtonPushed(0);
        remoteController.undoButtonPushed();
    }
}
